package com.mogu.user.service;

import com.mogu.entity.TUser;
import com.mogu.user.pojo.MyBlog;
import com.mogu.user.pojo.MyComment;

import java.util.List;
import java.util.Map;

public interface UserService {
    String regist(TUser tUser);

    String sends(Map<String, String> map);

    String login(TUser tUser);

    TUser selectOne(String username);

    String edit(TUser tUser);

    /**
     * 通过uid查我的评论
     * @param uid
     * @return
     */
    List<MyComment> findMyCommentByUid(String uid);

    /**
     * 通过uid查我的博客
     * @param uid
     * @return
     */
    List<MyBlog> findMyBlogByUid(String uid);
}
